package uni.UNIBEE7B8D.view.User.SeetingEdit;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.RadioGroup;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import uni.UNIBEE7B8D.BaseActivity;
import uni.UNIBEE7B8D.R;

public class SexActivity extends BaseActivity {

    @BindView(R.id.group)
    RadioGroup group;
    @BindView(R.id.back)
    ImageView back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sex);
        ButterKnife.bind(this);

        group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, int checkedId) {
                switch (checkedId) {
                    case R.id.nan:
                        Log.d("==", "男");
                        break;
                    case R.id.nv:
                        Log.d("==", "女");
                        break;
                }
            }
        });
    }

    @OnClick(R.id.back)
    public void onViewClicked() {
        finish();
    }
}
